home *** CD-ROM | disk | FTP | other *** search
- Path: newsbf02.news.aol.com!not-for-mail
- From: queenhead@aol.com (Queenhead)
- Newsgroups: comp.lang.c
- Subject: Calculation in C: HELP
- Date: 27 Jan 1996 09:41:49 -0500
- Organization: America Online, Inc. (1-800-827-6364)
- Sender: root@newsbf02.news.aol.com
- Message-ID: <4eddjd$mde@newsbf02.news.aol.com>
- Reply-To: queenhead@aol.com (Queenhead)
- NNTP-Posting-Host: newsbf02.mail.aol.com
-
- Hi. I am trying to use the following calculation in a program and it is
- not coming out right:
-
- nextyr = rate * currentyr * ( 1 - (currentyr/1000000)
-
- Is something wrong with that (in terms of C syntax)? I should be getting
- 234,000 if rate is 2.6 and currentyr is 100,000. My program is not
- giving me that.
-
- Thanks.
-